package com.kgc.sbt.provider;

import com.alibaba.dubbo.config.annotation.Service;
import com.kgc.sbt.api.HotWordApi;
import com.kgc.sbt.util.RedisUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.ZSetOperations;

import java.util.Set;

/**
 * Created on 2021-06-22.
 * <p>
 * Author: a123
 * <p>
 * Description: 热词搜索业务接口实现
 */
@Service
public class HotWordProvider implements HotWordApi {

    @Autowired
    private RedisUtils redisUtils;


    @Override
    public void searchZincrby(String keyword) {
        String sortedSetName = "searchHotWord";
        double x = 1.0;
        redisUtils.Zset(sortedSetName,keyword,x);

    }




}
